﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AccesoDatos.DAO;
using ModeloEntidades;


namespace LogicaControl
{
    public class Controlador_Inspector : Controlador
    {
        // Atributos de manejo de instancia (singleton)
        static Controlador_Inspector instance = null;
        //------------------------------------------------------------------------------------------
        private DAO_Inspector miDAO_Inspector = DAO_Inspector.Instance;
        //------------------------------------------------------------------------------------------
        public List<Inspector> obtener()
        {
            return miDAO_Inspector.obtener();
        }

        public Inspector obtenerNinguno()
        {
            Inspector unInspector = new Inspector();
            unInspector.Id = 1000;
            unInspector.nombre = "Ninguno";

            return unInspector;
        }

        public Inspector obtenerCualquiera()
        {
            Inspector unInspector = new Inspector();
            unInspector.Id = 1001;
            unInspector.nombre = "Cualquiera";

            return unInspector;
        }
    }
}
